Skip to content

Include hardware info in diagnostic snapshot & restructure properties#270

Merged
kushalpandya merged 1 commit into
mainfrom
kp-restructure-diagnostic-snapshot
May 7, 2026
Merged

Include hardware info in diagnostic snapshot & restructure properties#270
kushalpandya merged 1 commit into
mainfrom
kp-restructure-diagnostic-snapshot

Conversation

@kushalpandya
Copy link
Copy Markdown
Owner

Refactors the logic that prepares a diagnostic snapshot and also includes hardware info. The snapshot is only written to Petrichor's log file without leaving the user's device; the app doesn't read any privacy-violating information to prepare the snapshot and is only intended to provide detailed info on the current setup while reporting a problem.

Here's what a sample snapshot looks like (as shown from my own Petrichor installation);

{
  "app" : {
    "build" : "debug",
    "bundleId" : "org.Petrichor.debug",
    "name" : "Petrichor",
    "version" : "1.5.1"
  },
  "device" : {
    "arch" : "arm64",
    "logicalCores" : 10,
    "memory" : "32 GB",
    "model" : "MacBookPro18,2",
    "os" : "Version 26.4.1 (Build 25E253)",
    "physicalCores" : 10,
    "processor" : "Apple M1 Max",
    "storageAvailable" : "589.64 GB",
    "storageTotal" : "994.66 GB"
  },
  "equalizer" : {
    "eqEnabled" : true,
    "eqPreset" : "wow",
    "preampGain" : null,
    "stereoWideningEnabled" : false
  },
  "library" : {
    "albumCount" : 550,
    "artistCount" : 549,
    "folderCount" : 6,
    "folders" : [
      "\/Users\/kushal\/Library\/CloudStorage\/OneDrive-Personal\/Music\/Albums",
      "\/Users\/kushal\/Library\/CloudStorage\/OneDrive-Personal\/Music\/Collection",
      "\/Users\/kushal\/Library\/CloudStorage\/OneDrive-Personal\/Music\/Extras\/Hans Zimmer",
      "\/Users\/kushal\/Library\/CloudStorage\/OneDrive-Personal\/Music\/Extras\/John Mayer",
      "\/Users\/kushal\/Library\/CloudStorage\/OneDrive-Personal\/Music\/Extras\/Kites",
      "\/Users\/kushal\/Library\/CloudStorage\/OneDrive-Personal\/Music\/Yanni"
    ],
    "formats" : {
      "m4a" : 1556,
      "mp3" : 279
    },
    "lastScanDate" : null,
    "pinnedItemCount" : 6,
    "playlistCount" : 5,
    "totalDurationSec" : 538379,
    "totalSize" : "19.42 GB",
    "trackCount" : 1835
  },
  "others" : {
    "albumSortBy" : "album",
    "entitySortAscending" : true,
    "librarySelectedFilterType" : "Albums",
    "playlistSortAscending" : false,
    "playlistSortFields" : null,
    "trackColumns" : [
      "title",
      "album",
      "dateAdded",
      "duration",
      "artist",
      "trackNumber",
      "favorite",
      "year"
    ],
    "trackTableRowSize" : "expanded"
  },
  "phase" : "Termination",
  "settings" : {
    "general" : {
      "automaticUpdatesEnabled" : true,
      "closeToMenubar" : true,
      "colorMode" : "Auto",
      "hideDuplicateTracks" : true,
      "showFoldersTab" : false,
      "startAtLogin" : false,
      "useArtworkColors" : true
    },
    "library" : {
      "autoScanInterval" : "onlyOnLaunch",
      "discoverTrackCount" : 50,
      "discoverUpdateInterval" : "weekly"
    },
    "online" : {
      "artistInfoFetchEnabled" : true,
      "lastfmUsername" : "<set>",
      "loveSyncEnabled" : false,
      "onlineLyricsEnabled" : true,
      "scrobblingEnabled" : false
    }
  },
  "uniqueId" : "<Unique ID string generated from Bundle ID of installation>"
}

@kushalpandya kushalpandya merged commit 623e71f into main May 7, 2026
4 checks passed
@kushalpandya kushalpandya deleted the kp-restructure-diagnostic-snapshot branch May 9, 2026 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant